﻿.viewport {
    position: relative;
    overflow: hidden;
}

    .viewport ::deep .association-child-side {
        width: 12px;
        height: 12px;
        border-radius: 12px;
        background-color: #95A5A6;
    }

    .viewport ::deep .association-name-overlay {
        font-size: 14px;
        padding: 0 4px;
        border: 1px solid #7F8C8D;
        border-radius: 4px;
        background-color: white;
        white-space: nowrap;
        user-select: none;
        cursor: pointer;
        z-index: 10;
    }

        .viewport ::deep .association-name-overlay::after {
            content: " ";
            position: absolute;
            top: 4px;
            right: -16px;
            width: 12px;
            height: 12px;
            background-image: url(IImageService/Close);
            cursor: pointer;
            visibility: hidden;
            transition-property: visibility;
            transition-delay: 0.2s;
        }

        .viewport ::deep .association-name-overlay:hover::after {
            visibility: visible;
            transition: none;
        }

    .viewport ::deep .association-one-overlay {
        font-size: 18px;
        font-family: Consolas;
        color: #2C3E50;
        width: 20px;
        height: 20px;
        line-height: 18px;
        text-align: center;
        border-radius: 10px;
        border: 1px solid #2C3E50;
        background-color: white;
        user-select: none;
        z-index: 9999;
    }

    .viewport ::deep .association-more-overlay {
        font-size: 28px;
        font-family: Consolas;
        color: #2C3E50;
        width: 20px;
        height: 20px;
        line-height: 22px;
        text-align: center;
        padding-top: 2px;
        border-radius: 10px;
        border: 1px solid #2C3E50;
        background-color: white;
        user-select: none;
        z-index: 9999;
    }

.entity-association-editor {
    position: absolute;
}

    .entity-association-editor[connection-dragging] ::deep .entity-node .connection-source-endpoint {
        visibility: hidden !important;
    }

    .entity-association-editor[connection-dragging] ::deep .entity-node:hover {
        border-color: #D35400 !important;
    }

        .entity-association-editor[connection-dragging] ::deep .entity-node:hover .entity-caption {
            border-color: #D35400 !important;
        }

    .entity-association-editor[connection-dragging] ::deep .entity-node .entity-caption.connection-target-endpoint:hover .entity-caption-text {
        color: #D35400 !important;
    }

    .entity-association-editor[connection-dragging] ::deep .property.connection-target-endpoint:hover .property-caption {
        color: #D35400 !important;
    }
